/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package construtora.limiar.dao;

import construtora.limiar.dao.generic.AbstractDAO;
import construtora.limiar.dao.generic.IDAO;
import construtora.limiar.models.TelefoneFuncionario;
import construtora.limiar.models.generic.IModel;
import java.util.List;

/**
 *
 * @author michel
 */
public class TelefoneFuncionarioDAO extends AbstractDAO implements IDAO {

    public TelefoneFuncionarioDAO() {
        this.table = "telefone_funcionario";
    }
/*    
    @Override
    public String getDefaultWhere(IModel model) {
        return "id_funcionario = " + ((TelefoneFuncionario) model).getFuncionario().getId()
                + " and id_telefone = "
                + ((TelefoneFuncionario) model).getTelefone().getId();
    }

    @Override
    public String[][] getFields(IModel model) {
        TelefoneFuncionario telefoneCliente = (TelefoneFuncionario) model;
        String[][] fields = new String[2][2];
        fields[0][0] = "id_telefone";
        fields[0][1] = telefoneCliente.getTelefone().getId().toString();
        fields[1][0] = "id_funcionario";
        fields[1][1] = telefoneCliente.getFuncionario().getId().toString();
        return fields;

    }

*/
    @Override
    public IModel fetchOne(IModel model) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<? extends IModel> fetchAll(String where, String order, Integer limit, Integer offset) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public String[][] getFields(IModel model) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
